const dev = new (class {
  apiDomain: string = 'http://localhost:3800';
  assetDomain: string = "http://localhost:3800"
  apiVersion: string = '';
  encryptKey: string = '0.16367990166277924';
  tokenExpire: number = 7 * 24 * 60 * 60 * 1000;
  pageSize: number = 30;
  mode: "production" | "development" = "development"
  loginPath: string = "/user/login"
})();

const prod = new (class {
  apiDomain: string = 'https://vpuber-api-proxy.frp.wonew.top';
  assetDomain: string = "https://vpuber-api-proxy.frp.wonew.top"
  apiVersion: string = '';
  encryptKey: string = '0.16367990166277924';
  tokenExpire: number = 7 * 24 * 60 * 60 * 1000;
  pageSize: number = 30;
  mode: "production" | "development" = "production"
  loginPath: string = "/user/login"
})();

const environment = process.env.NODE_ENV === 'production' ? prod : dev;

export default environment;
